package com.lj.ljminsu.wk.service.Impl;

import com.lj.ljminsu.wk.dao.UpdateHouseStateDao;
import com.lj.ljminsu.wk.service.IUpdateHouseStateService;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Service
public class UpdateHouseStateServiceImpl implements IUpdateHouseStateService {
    @Resource
    private UpdateHouseStateDao updateHouseStateDao;

    @Override
    public void updateHouseState(int state, String ids) throws Exception {
        if(state == 0){
            state = 2;
        }

        String[] strings = ids.split(",");
        updateHouseStateDao.updateHouseState(state,strings);
    }
}
